#Target
TgtFile = spucl

SrcFile0 = Activator

# App Source Paths
SrcDir = C:\softpay\ver30\SOURCE\SPUCL

AppObjects = \
	$(OBJ_DIR)\$(SrcFile0).o  

# Compiler Options
MkIncludes = -I $(SDS_INCLUDES) -I $(ACT_INCLUDES) -I $(SP2_INCLUDES) 
COptions = $(GCOPTIONS) -D__K2__ -D_VSC -D_DEBUG -f -s int=2 -s sizeof=2 -r a4 -r a5 -K2 -o $(@)

#  Target Definition Library
$(LIB_DIR)\$(TgtFile).a : $(AppObjects)
	@echo CREATING...Module $(LIB_DIR)\$(TgtFile).a
	@$(SDS)\cmd\liber -cy $(LIB_DIR)\$(TgtFile).a $(AppObjects)


$(OBJ_DIR)\$(SrcFile0).o : $(SrcDir)\$(SrcFile0).cpp \
		C:\softpay\ver30\SOURCE\INCLUDE\msg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\gds.h\
		C:\softpay\ver30\SOURCE\INCLUDE\batch.h\
		C:\softpay\ver30\SOURCE\INCLUDE\trt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SoftPayUCLActivator.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pfr.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h\
		C:\softpay\ver30\SOURCE\INCLUDE\transact.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pwrfids.h\
		C:\softpay\ver30\SOURCE\INCLUDE\util.h\
		C:\softpay\ver30\SOURCE\INCLUDE\check.h\
		C:\softpay\ver30\SOURCE\INCLUDE\UCLActivator.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ui.h\
		C:\softpay\ver30\SOURCE\INCLUDE\comm.h 
	@echo COMPILING...$(SrcFile0).cpp
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile0).cpp | fmterr.exe

